// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入vuex
import store from './store'
import VueAwesomeSwiper from 'vue-awesome-swiper'

import './assets/styles/reset.css'
/* 解决移动端1px问题 */
import './assets/styles/border.css'
import './assets/styles/iconfont.css'

// 解决移动端点击延迟300ms
import fastClick from 'fastclick'
import 'swiper/dist/css/swiper.css'
import './assets/styles/common.css'
// 在生产环境去掉控制台警告
Vue.config.productionTip = false
// 一定要写
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper /* { default global options } */)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router, // 将路由对象传入,然后每个组件都可以使用this.$route,this.$router
  store, //将状态仓库传入（公共数据）,然后每个组件都可以使用this.$store
  components: { App }, // es6 对象键与值相同可以省略值,相当于{App: App}
  template: '<App/>'
})
